package cn.stronglink.asset.module.resource.resourcegroup.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.ResourceGroup;
import cn.stronglink.asset.model.ResourceGroupAsset;

public interface ResourceGroupMapper {

	public void create(ResourceGroup resourceGroup);

	public void createResourceGroupAsset(ResourceGroupAsset resourceGroupAsset);

	public void removeResourceGroupAsset(@Param("resourceGroupId")Long resourceGroupId);

	public void removeResourceGroup(@Param("id")Long id);

	public void update(ResourceGroup resourceGroup);

	public List<ResourceGroup> qryList(Pagination page,@Param("params") Map<String, Object> params);

	public ResourceGroup qryById(@Param("id")Long id);

	public List<ResourceGroupAsset> qryResourceGroupAssetList(@Param("resourceGroupId")Long resourceGroupId);

	public List<ResourceGroup> queryAllList();

}
